package Controller;

import java.util.ArrayList;
import Model.*;

public class ProductController {
    public static ArrayList<Product> listProducts(){
        ProductM productM = new ProductM();

        return productM.all();
    }

    public static ArrayList<Product> searchProduct(String name){
        ProductM productM = new ProductM();

        return productM.find(name);
    }
}
